<script src="../libs/jquery/colorpicker/js/evol.colorpicker.min.js" type="text/javascript"></script>
<link href="../libs/jquery/colorpicker/css/evol.colorpicker.css" rel="stylesheet" /> 
<style type="text/css">
	#main table.evo-palette{
		width:204px;
		min-width:204px;	
		margin:auto;
	}
	#main table.evo-palette tr{
		background:none;
	}
	#main table.evo-palette td{
		border-bottom:none;
		padding:auto;
	}	
	#main table.evo-palette th{
		color:#000;
		text-shadow:none;
	}
	
	#main div.evo-palcenter table.evo-palette2{
		width:auto;
		min-width:0;
		margin:auto;
	}
	#main div.evo-palcenter table.evo-palette2 td{
		padding:6px 7px;	
	}
	
	.evo-pointer{
		margin-top:3px;	
	}
</style>
<div class="full_w">
    <div class="h_title"><?php echo Yii::t('AdmincpModule.admincp', 'Update Lists'); ?></div>
    <?php 
        foreach(Yii::app()->admin->getFlashes() as $key => $message){
            echo '<div class="n_'.$key.'"><p>'.$message."</p></div>\n";
        }
    ?>
    <form action="" method="post" id="frmUser">
        <div class="element">
            <label for="name">List name <span class="red">*</span></label>
            <input type="text" name="list[list_name]" id="name" class="text required" value="<?php echo isset($arrItemInfo['list_name'])?$arrItemInfo['list_name']:null; ?>">
        </div>
        <div class="element">
            <label for="description">Description:</label>
            <textarea name="list[list_description]" class="textarea" id="description"><?php echo isset($arrItemInfo['list_description'])?$arrItemInfo['list_description']:null; ?></textarea>
        </div>
         <div class="element">
            <label for="color">Color:</label>
            <input type="text" name="list[list_color]" id="color" class="text required" value="<?php echo isset($arrItemInfo['list_color'])?$arrItemInfo['list_color']:'#ffffff'; ?>" style="width:100px;">
        </div>
        <div class="element">
        	<label for="name">Status:</label>
            <select name="list[list_status]" id="status">
            	<option value="1">Enabled</option>
                <option value="0" <?php if(isset($arrItemInfo['list_status']) && $arrItemInfo['list_status'] == '0'): ?>selected<?php endif; ?>>Disabled</option>
            </select>
        </div>
        <div class="entry">
            <input type="hidden" name="id" id="id" value="<?php echo isset($arrItemInfo['subscriber_id'])?$arrItemInfo['subscriber_id']:null; ?>">
            <button type="submit">Submit</button> <button>Cancel</button>
        </div>
    </form>
</div>
<script type="text/javascript">
	$(function(){
		$('#frmUser').validate();
		$("#color").colorpicker({
			history: false,
			moreColors: false	
		});
	});
</script>